<?php
/**
 * Created by litong on Date: 2019/2/25 0025 下午 5:04
 */
$id = intval($_REQUEST['id']);
$sql = "delete from users where id=$id";

include 'conn.php';
$connection = getConnection();
$result = mysqli_query($connection,$sql);
if ($result){
  echo json_encode(array('success'=>true));
} else {
  echo json_encode(array('msg'=>'后台发生错误'));
}